This saves two sum over the looping version. TWO SUM.